package com.aplink.generic.pojo.controlspec.textview;

public enum DisplayStyle {
	CURRENT_DATETIME("CurrentDateTime"),
	DATE("Date"),
	DATETIME("DateTime"),
	MONEY("Money"),
	NUMBER("Number"),
	TEXT("Text"),
	TIME("Time");
	public static DisplayStyle get(final String value) {
		for (final DisplayStyle type : DisplayStyle.values()) {
			if (type.mType.equals(value)) {
				return type;
			}
		}
		return TEXT;
	}

	private String mType;

	private DisplayStyle(final String type) {
		setType(type);
	}

	public String getType() {
		return this.mType;
	}

	public void setType(final String type) {
		this.mType = type;
	}
}
